<% has_design = has_design?(@assembly.ciId) %>
<div class="alert alert-block alert-info attention">
  <strong>Open Design Release</strong> &raquo;
  Review <%= 'and commit' if has_design %> release changes for all platforms.
  <div class="action">
    <% # Include dummy 'time' parameter to force reload to ensure release loading regardless of current sort on PAGINATED release list. %>
    <%= link_to('Review',
                assembly_design_path(assembly, :anchor => path_to_release(release).split('#').last),
                :class => 'btn btn-small btn-primary') %>
    <%= link_confirm_busy(button('Commit Design', 'small', 'success'),
                          :url     => commit_assembly_design_release_path(assembly, release),
                          :method  => :post,
                          :id      => :commit,
                          :confirm => 'Commit design?',
                          :busy    => 'committing...',
                          :comment => :desc) if has_design %>
  </div>
</div>
